﻿@model Acme.Marketing.Web.Models.NewspaperAdsModel

@{
    ViewBag.Title = "Index";
}

<h2>Newspapers and Advertisements Maintenance</h2>
<div>
    <fieldset>
        <legend>Management</legend>
        <ul>
            <li>@Html.ActionLink("Create Newspaper", "CreateNewspaper", "Home")</li>
            <li>@Html.ActionLink("Create Advertisement", "CreateAdvertisement", "Home")</li>
        </ul>
        <hr />
        <ul>
            <li>@Html.ActionLink("List Newspapers", "ListNewspaper", "Home")</li>
            <li>@Html.ActionLink("List Advertisements", "CreateNewspaper", "Home")</li>
        </ul>
        <ul>
            <li>@Html.ActionLink("List Newspapers and Ads", "ListNewspaperAds", "Home")</li>
        </ul>
    </fieldset>

</div>


@section scripts
{
    <script type="text/javascript">
        $(function () {
            $('#example').dataTable({
                bProcessing: true,
                sAjaxSource: '@Url.Action("ListNewspapers", "Home")'
            });
        });
    </script>
}